package com.ky.course.service.impl;

import com.ky.common.course.entity.Material;
import com.ky.course.mapper.MaterialMapper;
import com.ky.course.service.MaterialService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 教材表 服务实现类
 * </p>
 *
 * @author zpa
 * @since 2024-06-18
 */
@Service
public class MaterialServiceImpl extends ServiceImpl<MaterialMapper, Material> implements MaterialService {


    @Autowired
    private MaterialMapper materialMapper;
    @Override
    public List<Material> getCourseRefmaterial(int courseId) {

        return  materialMapper.getCourseRefmaterial(courseId);
    }
}
